<template>
  <view class="content">
      <u-button type="success">按钮</u-button>
      <u-button type="error">按钮</u-button>
      <u-button type="warning" @click="btnClick">发布内容</u-button>
      <u-button type="success" @click="requestLogin">获取微音所有内容</u-button>
  </view>
</template>

<script>
import RequestModel from '../../utils/request'
const requestModel = new RequestModel()
export default {
  data() {
    return {
      title: 'Hello',
      loading:true
    }
  },
  methods: {
    btnClick() {
      uni.navigateTo({
        url: '/pages/release/index',
      })
    },
    async requestLogin() {
      const res = await requestModel.getTinyVoiceMain({
        currentPage: '1',
        pageSize: '10',
      })
      console.log(res)
    },
  },
}
</script>

<style lang="scss" scpoed>
</style>
